const path = require('path');
const js2html = require('./plguins/js2html-webpack-plugin')

module.exports = {
    mode: 'production',
    entry: './src/index.js',
    output: {
        path: path.resolve(__dirname, 'dist'),
        filename: 'bundle.js',
    },
    plugins: [new js2html({
        // scripts: [
        //     path.resolve(__dirname, './src/user.min.js'),
        //     path.resolve(__dirname, './src/alert.min.js'),
        // ]
    })]
};